#import "GKCover.h"
#import "AppDelegate.h"
#import "dfhgwhruebvhrheyavenuetyre.h"
#import "dfhgwhruebvhrheyoutwarddelegate.h"
#import "dfhgwhruebvhrheyluggagerecorder.h"
#import "dfhgwhruebvhrheyleatherfreight.h"
#import "dfhgwhruebvhrheycapableintellectual.h"
#import "dfhgwhruebvhrheysecurityinjure.h"
#import "dfhgwhruebvhrheyprevalentconnectionViewController.h"
#import "dfhgwhruebvhrheyinvalidoutput.h"
#import "dfhgwhruebvhrheyaluminiumdisorder.h"
#import "dfhgwhruebvhrheyauthoritycatalogue.h"
#import "dfhgwhruebvhrheydefinitelyleakViewController.h"
#import "dfhgwhruebvhrheynamelyprevalentViewController.h"
@interface dfhgwhruebvhrheydefinitelyleakViewController ()<UIScrollViewDelegate>
@property (nonatomic, strong) dfhgwhruebvhrheycapableintellectual *popView;
@property (nonatomic, strong) dfhgwhruebvhrheyleatherfreight *popDataModel;
@property (nonatomic, strong) dfhgwhruebvhrheyauthoritycatalogue *localModel;
@property (nonatomic, strong) dfhgwhruebvhrheyinvalidoutput *associateView;
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *eduView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *usageView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *maritalView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *numChildView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *religionView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *emailView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *faceBookView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *viberPhoneView;
@property (weak, nonatomic) IBOutlet dfhgwhruebvhrheysecurityinjure *backupPhoneView;
@end
@implementation dfhgwhruebvhrheydefinitelyleakViewController
- (dfhgwhruebvhrheycapableintellectual *)popView {
	if(!_popView) {
		_popView = [[NSBundle mainBundle] loadNibNamed:@"dfhgwhruebvhrheycapableintellectual" owner:nil options:nil].firstObject;
	}
	return _popView;
}
- (dfhgwhruebvhrheyinvalidoutput *)associateView {
	if (_associateView == nil) {
		_associateView = [[dfhgwhruebvhrheyinvalidoutput alloc] init];
	}
	return _associateView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
	[self loadUI];
	[self loadPopData];
	[self loadLocalData];
	[self addAuthCenterLitsPage];
	[dfhgwhruebvhrheyoptionsaving uploadRiskDataByCatchId:@"5" andApplyId:nil withDetailId:nil];
	AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
	delegate.inBasicAuth = YES;
	NSString *identifier = [[NSUserDefaults standardUserDefaults] stringForKey:[NSString stringWithFormat:@"%@_%@", [dfhgwhruebvhrheyoptionsaving getUserData].phone, dhgfywegwygeydwconnectionencounter]];
	if (identifier.length == 0) {
		[[NSUserDefaults standardUserDefaults] setObject:@"basic_info" forKey:[NSString stringWithFormat:@"%@_%@", [dfhgwhruebvhrheyoptionsaving getUserData].phone, dhgfywegwygeydwconnectionencounter]];
	}
}
- (void)addAuthCenterLitsPage {
		dfhgwhruebvhrheynamelyprevalentViewController *center = (dfhgwhruebvhrheynamelyprevalentViewController *)[UIStoryboard storyboard:@"Home" withidentifier:@"authentication"];
		center.hidesBottomBarWhenPushed = YES;
		NSMutableArray *vcs = [self.navigationController.viewControllers mutableCopy];
		[vcs insertObject:center atIndex:vcs.count - 1];
		self.navigationController.viewControllers = vcs;
}
- (void)loadUI {
	[self configBackIcon:@"dhgfywegwygeydwcurvereciprocal"];
	[self configRightIcon:@"navigation_right"];
	self.navigationStyle = dhgfywegwygeydwreciprocaltransport;
	self.navigationItem.title = @"Basic Information";
	self.usageView.tag = 100;
	__weak typeof(self) weakSelf = self;
	[self.usageView inputTextViewClick:^(dfhgwhruebvhrheysecurityinjure * _Nonnull clickView) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		[strongSelf showPopView:clickView.tag];
	}];
	self.eduView.tag = 101;
	[self.eduView inputTextViewClick:^(dfhgwhruebvhrheysecurityinjure * _Nonnull clickView) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		[strongSelf showPopView:clickView.tag];
	}];
	self.maritalView.tag = 102;
	[self.maritalView inputTextViewClick:^(dfhgwhruebvhrheysecurityinjure * _Nonnull clickView) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		[strongSelf showPopView:clickView.tag];
	}];
	self.numChildView.tag = 103;
	[self.numChildView inputTextViewClick:^(dfhgwhruebvhrheysecurityinjure * _Nonnull clickView) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		[strongSelf showPopView:clickView.tag];
	}];
	self.religionView.tag = 104;
	[self.religionView inputTextViewClick:^(dfhgwhruebvhrheysecurityinjure * _Nonnull clickView) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		[strongSelf showPopView:clickView.tag];
	}];
	self.associateView.hidden = YES;
	[self.view addSubview:self.associateView];
	self.emailView.contentType = dhgfywegwygeydwcollapsedefinitely;
	self.emailView.keyboardType = UIKeyboardTypeEmailAddress;
	[self.emailView inputStart:^(UITextField * _Nonnull inputTextField) {
		[dfhgwhruebvhrheyavenuetyre addTracking:email_duration withValue:0 byType:1];
	}];
	[self.emailView inputFinish:^(UITextField * _Nonnull inputTextField) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		if ([strongSelf.emailView.subviews containsObject:inputTextField]) {
			strongSelf.associateView.hidden = YES;
			strongSelf.localModel.email = inputTextField.text;
			[strongSelf.emailView bindContent:inputTextField.text];
		}
	}];
	[self.emailView inputTextChanged:^(UITextField * _Nonnull inputTextField) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		strongSelf.emailView.error = NO;
		if ([strongSelf.emailView.subviews containsObject:inputTextField]) {
			[strongSelf emailAutoAssociate:inputTextField.text];
		}
	}];
	[self.faceBookView inputStart:^(UITextField * _Nonnull inputTextField) {
		[dfhgwhruebvhrheyavenuetyre addTracking:facebook_name_duration withValue:0 byType:1];
	}];
	[self.faceBookView inputFinish:^(UITextField * _Nonnull inputTextField) {
		[dfhgwhruebvhrheyavenuetyre duartion:facebook_name_duration isCover:YES byType:1];
		[dfhgwhruebvhrheyavenuetyre updateCount:facebook_name_updatecount byType:1];
	}];
	[self.faceBookView inputTextChanged:^(UITextField * _Nonnull inputTextField) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		strongSelf.faceBookView.error = NO;
		if ([strongSelf.faceBookView.subviews containsObject:inputTextField]) {
			[strongSelf.faceBookView bindContent:inputTextField.text];
			strongSelf.localModel.fbk_name = inputTextField.text;
		}
	}];
	self.viberPhoneView.keyboardType = UIKeyboardTypeNumberPad;
	self.viberPhoneView.contentType = dhgfywegwygeydwbeforehandversion;
	[self.viberPhoneView inputStart:^(UITextField * _Nonnull inputTextField) {
		[dfhgwhruebvhrheyavenuetyre addTracking:messenger_viber_duration withValue:0 byType:1];
	}];
	[self.viberPhoneView inputFinish:^(UITextField * _Nonnull inputTextField) {
		[dfhgwhruebvhrheyavenuetyre duartion:messenger_viber_duration isCover:YES byType:1];
		[dfhgwhruebvhrheyavenuetyre updateCount:messenger_viber_updatecount byType:1];
	}];
	[self.viberPhoneView inputTextChanged:^(UITextField * _Nonnull inputTextField) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		strongSelf.viberPhoneView.error = NO;
		if ([strongSelf.viberPhoneView.subviews containsObject:inputTextField]) {
			[strongSelf.viberPhoneView bindContent:inputTextField.text];
			strongSelf.localModel.whatsapp = inputTextField.text;
		}
	}];
	self.backupPhoneView.keyboardType = UIKeyboardTypeNumberPad;
	self.backupPhoneView.contentType = dhgfywegwygeydwbeforehandversion;
	[self.backupPhoneView inputStart:^(UITextField * _Nonnull inputTextField) {
		[dfhgwhruebvhrheyavenuetyre addTracking:backup_phone_duration withValue:0 byType:1];
	}];
	[self.backupPhoneView inputFinish:^(UITextField * _Nonnull inputTextField) {
		[dfhgwhruebvhrheyavenuetyre duartion:backup_phone_duration isCover:YES byType:1];
		[dfhgwhruebvhrheyavenuetyre updateCount: backup_phone_updatecount byType:1];
	}];
	[self.backupPhoneView inputTextChanged:^(UITextField * _Nonnull inputTextField) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		strongSelf.backupPhoneView.error = NO;
		if ([strongSelf.backupPhoneView.subviews containsObject:inputTextField]) {
			[strongSelf.backupPhoneView bindContent:inputTextField.text];
			strongSelf.localModel.second_mobile = inputTextField.text;
		}
	}];
}
- (void)emailAutoAssociate:(NSString *)text {
	__weak typeof(self) weakSelf = self;
	self.associateView.hidden = text.length == 0;
	[self.emailView bindContent:text];
	self.localModel.email = text;
	CGRect rect = [self.emailView.superview convertRect:self.emailView.frame toView:self.view];
	self.associateView.frame = CGRectMake(CGRectGetMinX(rect), 0, CGRectGetWidth(rect), 220);
	[self.associateView inputText:text withViewHeight:^(CGFloat height) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		strongSelf.associateView.php_y = CGRectGetMinY(rect) - height - 5;
	} andSelected:^(NSString * _Nonnull select) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		strongSelf.associateView.hidden = YES;
		[strongSelf.emailView bindContent:select];
		strongSelf.localModel.email = select;
		[dfhgwhruebvhrheyavenuetyre duartion:email_duration isCover:YES byType:1];
		[dfhgwhruebvhrheyavenuetyre updateCount:emai_updatecount byType:1];
	}];
}
- (void)loadLocalData {
	NSString *authDataString = [dfhgwhruebvhrheyoptionsaving getDataStringByKey:dhgfywegwygeydwencounterpropose];
	if (!authDataString.length) {
		self.localModel = [[dfhgwhruebvhrheyauthoritycatalogue alloc] init];
	}else {
		self.localModel = [dfhgwhruebvhrheyauthoritycatalogue yy_modelWithJSON:authDataString];
		[self.usageView bindContent:self.localModel.usage_type];
		[self.eduView bindContent:self.localModel.eschool];
		[self.maritalView bindContent:self.localModel.merry_state];
		[self.numChildView bindContent:self.localModel.kid_number];
		[self.religionView bindContent:self.localModel.client_religion];
		[self.emailView bindContent:self.localModel.email];
		[self.faceBookView bindContent:self.localModel.fbk_name];
		[self.viberPhoneView bindContent:self.localModel.whatsapp];
		[self.backupPhoneView bindContent:self.localModel.second_mobile];
	}
}
- (void)loadPopData {
	[dfhgwhruebvhrheyoptionsaving.keyWindow startLoading];
	__weak typeof(self) weakSelf = self;
	[[dfhgwhruebvhrheyluggagerecorder shareInstance] dhgfywegwygeydwbarrierawait:dhgfywegwygeydwlambbreast path:authPopDataApi isEncrypt:YES withParams:nil success:^(NSURLSessionDataTask * _Nonnull task, NSString * _Nonnull json) {
		[dfhgwhruebvhrheyoptionsaving.keyWindow stopLoading];
		__strong typeof(weakSelf) strongSelf = weakSelf;
		dfhgwhruebvhrheyleatherfreight *popModel = [dfhgwhruebvhrheyleatherfreight yy_modelWithJSON:json];
		strongSelf.popDataModel = popModel;
	} failure:^(NSURLSessionDataTask * _Nonnull task, NSError * _Nonnull error) {
		[dfhgwhruebvhrheyoptionsaving.keyWindow stopLoading];
	}];
}
- (void)showPopView:(NSUInteger)tag {
	__weak typeof(self) weakSelf = self;
	switch (tag) {
		case 100: {
			NSLog(@"用途");
			self.popView.popTitle = @"Usage of Loan";
			[dfhgwhruebvhrheyavenuetyre addTracking:purpose_last_duration withValue:0 byType:1];
			[dfhgwhruebvhrheyavenuetyre addTotalTracking:purpose_all_duration byType:1];
			[GKCover coverFrom:[dfhgwhruebvhrheyoptionsaving keyWindow] contentView:self.popView style:GKCoverStyleTranslucent showStyle:GKCoverShowStyleCenter showAnimStyle:GKCoverShowAnimStyleCenter hideAnimStyle:GKCoverHideAnimStyleCenter notClick:YES];
			[self.popView bindPopData:self.popDataModel.loan_pur andSelect:^(dhgfywegwygeydwpursuitlaser * _Nonnull select) {
				__strong typeof(weakSelf) strongSelf = weakSelf;
				[GKCover hideCover];
				if (select != nil) {
					[dfhgwhruebvhrheyavenuetyre duartion:purpose_all_duration isCover:NO byType:1];
					[dfhgwhruebvhrheyavenuetyre duartion:purpose_last_duration isCover:YES byType:1];
					[dfhgwhruebvhrheyavenuetyre updateCount:purpose_updatecount byType:1];
					[strongSelf.usageView bindContent:select.title];
					strongSelf.localModel.usage_type = select.title;
					if (!strongSelf.eduView.areadFilled) {
						[strongSelf showPopView:strongSelf.eduView.tag];
					}
				}
			}];
		}
			break;
		case 101: {
			NSLog(@"学历");
			self.popView.popTitle = @"Education Background";
			[dfhgwhruebvhrheyavenuetyre addTracking:education_duration withValue:0 byType:1];
			[GKCover coverFrom:[dfhgwhruebvhrheyoptionsaving keyWindow] contentView:self.popView style:GKCoverStyleTranslucent showStyle:GKCoverShowStyleCenter showAnimStyle:GKCoverShowAnimStyleCenter hideAnimStyle:GKCoverHideAnimStyleCenter notClick:YES];
			[self.popView bindPopData:self.popDataModel.eschool andSelect:^(dhgfywegwygeydwpursuitlaser * _Nonnull select) {
				__strong typeof(weakSelf) strongSelf = weakSelf;
				[GKCover hideCover];
				if (select != nil) {
					[strongSelf.eduView bindContent:select.title];
					strongSelf.localModel.eschool = select.title;
					if (!strongSelf.maritalView.areadFilled) {
						[strongSelf showPopView:strongSelf.maritalView.tag];
					}
					[dfhgwhruebvhrheyavenuetyre duartion:education_duration isCover:YES byType:1];
					[dfhgwhruebvhrheyavenuetyre updateCount:education_updatecount byType:1];
				}
			}];
		}
			break;
		case 102: {
			NSLog(@"婚姻");
			self.popView.popTitle = @"Marital Status";
			[dfhgwhruebvhrheyavenuetyre addTracking:marry_status_duration withValue:0 byType:1];
			[GKCover coverFrom:[dfhgwhruebvhrheyoptionsaving keyWindow] contentView:self.popView style:GKCoverStyleTranslucent showStyle:GKCoverShowStyleCenter showAnimStyle:GKCoverShowAnimStyleCenter hideAnimStyle:GKCoverHideAnimStyleCenter notClick:YES];
			[self.popView bindPopData:self.popDataModel.merry_state andSelect:^(dhgfywegwygeydwpursuitlaser * _Nonnull select) {
				__strong typeof(weakSelf) strongSelf = weakSelf;
				[GKCover hideCover];
				if (select != nil) {
					[strongSelf.maritalView bindContent:select.title];
					strongSelf.localModel.merry_state = select.title;
					if (!strongSelf.numChildView.areadFilled) {
						[strongSelf showPopView:strongSelf.numChildView.tag];
					}
					[dfhgwhruebvhrheyavenuetyre duartion:marry_status_duration isCover:YES byType:1];
					[dfhgwhruebvhrheyavenuetyre updateCount:marry_status_updatecount byType:1];
				}
			}];
		}
			break;
		case 103: {
			NSLog(@"子女个数");
			self.popView.popTitle = @"Number of Children";
			[dfhgwhruebvhrheyavenuetyre addTracking:kids_num_duration withValue:0 byType:1];
			[GKCover coverFrom:[dfhgwhruebvhrheyoptionsaving keyWindow] contentView:self.popView style:GKCoverStyleTranslucent showStyle:GKCoverShowStyleCenter showAnimStyle:GKCoverShowAnimStyleCenter hideAnimStyle:GKCoverHideAnimStyleCenter notClick:YES];
			[self.popView bindPopData:self.popDataModel.kid_number andSelect:^(dhgfywegwygeydwpursuitlaser * _Nonnull select) {
				__strong typeof(weakSelf) strongSelf = weakSelf;
				[GKCover hideCover];
				if (select != nil) {
					[strongSelf.numChildView bindContent:select.title];
					strongSelf.localModel.kid_number = select.title;
					if (!strongSelf.religionView.areadFilled) {
						[strongSelf showPopView:strongSelf.religionView.tag];
					}
					[dfhgwhruebvhrheyavenuetyre duartion:kids_num_duration isCover:YES byType:1];
					[dfhgwhruebvhrheyavenuetyre updateCount:kids_num_update_count byType:1];
				}
			}];
		}
			break;
		case 104: {
			NSLog(@"宗教信仰");
			self.popView.popTitle = @"Religion";
			[dfhgwhruebvhrheyavenuetyre addTracking:religion_duration withValue:0 byType:1];
			[GKCover coverFrom:[dfhgwhruebvhrheyoptionsaving keyWindow] contentView:self.popView style:GKCoverStyleTranslucent showStyle:GKCoverShowStyleCenter showAnimStyle:GKCoverShowAnimStyleCenter hideAnimStyle:GKCoverHideAnimStyleCenter notClick:YES];
			[self.popView bindPopData:self.popDataModel.user_religion andSelect:^(dhgfywegwygeydwpursuitlaser * _Nonnull select) {
				__strong typeof(weakSelf) strongSelf = weakSelf;
				[GKCover hideCover];
				if (select != nil) {
					[strongSelf.religionView bindContent:select.title];
					strongSelf.localModel.client_religion = select.title;
				}
				[dfhgwhruebvhrheyavenuetyre duartion:religion_duration isCover:YES byType:1];
				[dfhgwhruebvhrheyavenuetyre updateCount:religion_updatecount byType:1];
			}];
		}
			break;
		default:
			break;
	}
}
- (void)backAction {
	dfhgwhruebvhrheyaluminiumdisorder *popView = [[dfhgwhruebvhrheyaluminiumdisorder alloc] initWithFrame:CGRectMake(37, 0, dhgfywegwygeydwdispositionvisualize-37*2, 257)];
	[GKCover coverFrom:[dfhgwhruebvhrheyoptionsaving keyWindow] contentView:popView style:GKCoverStyleTranslucent showStyle:GKCoverShowStyleCenter showAnimStyle:GKCoverShowAnimStyleCenter hideAnimStyle:GKCoverHideAnimStyleCenter notClick:YES];
	__weak typeof(self) weakSelf = self;
	[popView configure:@"Warm Reminder" andTips:@"You have not finished filling in the authentication information. Still return it?" withBtnsClick:^(UIButton * _Nonnull sender) {
		__strong typeof(weakSelf) strongSelf = weakSelf;
		[GKCover hideCover];
		if(sender.tag == 101) {
			NSString *dataString = [strongSelf.localModel yy_modelToJSONString];
			[dfhgwhruebvhrheyoptionsaving saveDataString:dataString withKey:dhgfywegwygeydwencounterpropose];
			[strongSelf.navigationController popViewControllerAnimated:YES];
			AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
			delegate.inBasicAuth = NO;
		}
	}];
}
- (IBAction)continueAction {
    [self.view endEditing:YES];
	if (!self.localModel.usage_type.length) {
		self.usageView.error = YES;
		[self.scrollView setContentOffset:CGPointMake(0, 0) animated:YES];
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please select loan purpose"];
	}
	if (!self.localModel.eschool.length) {
		self.eduView.error = YES;
		[self.scrollView setContentOffset:CGPointMake(0, 0) animated:YES];
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please select education background"];
	}
	if (!self.localModel.merry_state.length) {
		self.maritalView.error = YES;
		[self.scrollView setContentOffset:CGPointMake(0, 0) animated:YES];
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please select marital Status"];
	}
	if (!self.localModel.kid_number.length) {
		self.numChildView.error = YES;
		[self.scrollView setContentOffset:CGPointMake(0, 0) animated:YES];
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please select number of children"];
	}
	if (!self.localModel.client_religion.length) {
		self.religionView.error = YES;
		[self.scrollView setContentOffset:CGPointMake(0, 0) animated:YES];
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please select religion"];
	}
	if (!self.localModel.email.length) {
		self.emailView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please fill in your email"];
	}
	if (!self.localModel.email.dhgfywegwygeydwcommenceagitation) {
		self.emailView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Email format error, please re-enter!"];
	}
	if([self.localModel.email dhgfywegwygeydwmusiciansegment]) {
		self.emailView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please enter correct email"];
	}
    self.localModel.fbk_name = [self.localModel.fbk_name stringByReplacingOccurrencesOfString:@" " withString:@""];
	if (!self.localModel.fbk_name.length) {
		self.faceBookView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please fill in your facebook"];
	}
	if([self.localModel.fbk_name dhgfywegwygeydwmusiciansegment]) {
		self.faceBookView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please enter correct facebook"];
	}
	if (!self.localModel.whatsapp.length) {
		self.viberPhoneView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please enter your Viber Phone number"];
	}
	if (!self.localModel.whatsapp.dhgfywegwygeydwdesignatecommence) {
		self.viberPhoneView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please enter the phone number in the correct format, which must start with 9, 09, 8 or 08"];
	}
	if (!self.localModel.second_mobile.length) {
		self.backupPhoneView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please fill in the backup phone number"];
	}
	if (!self.localModel.second_mobile.dhgfywegwygeydwdesignatecommence) {
		self.backupPhoneView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"Please enter the phone number in the correct format, which must start with 9, 09, 8 or 08"];
	}
	if ([self.localModel.second_mobile isEqualToString:[dfhgwhruebvhrheyoptionsaving getUserData].phone]) {
		self.backupPhoneView.error = YES;
		return [dfhgwhruebvhrheyoptionsaving.keyWindow show:@"The registered mobile phone number cannot be used as an alternate number"];
	}
	NSString *dataString = [self.localModel yy_modelToJSONString];
	[dfhgwhruebvhrheyoptionsaving saveDataString:dataString withKey:dhgfywegwygeydwencounterpropose];
	[[NSUserDefaults standardUserDefaults] setInteger:1 forKey:[NSString stringWithFormat:@"%@_%@", [dfhgwhruebvhrheyoptionsaving getUserData].phone, dhgfywegwygeydwproposediagram]];
	dfhgwhruebvhrheyprevalentconnectionViewController *job = (dfhgwhruebvhrheyprevalentconnectionViewController *)[UIStoryboard storyboard:@"Home" withidentifier:@"auth_job"];
	job.popDataModel = self.popDataModel;
	job.localModel = self.localModel;
	[self.navigationController pushViewController:job animated:YES];
}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
	self.associateView.hidden = YES;
}
@end
